Laravel eloquent mass update

55

Laravel eloquent mass update -

Flight::where('active', 1)
      ->where('destination', 'San Diego')
      ->update(['delayed' => 1]);

Comments

Submit
0 Comments